package studio.raptor.dispatcher.server.event;

import org.springframework.context.ApplicationEvent;
import studio.raptor.dispatcher.server.dto.Consumer;

/**
 * 事件更新事件
 * @author jack
 * @since 1.0
 */
public class ConsumerUpdatedEvent extends ApplicationEvent {

  private Consumer consumer;

  public ConsumerUpdatedEvent(Object source, Consumer consumer) {
    super(source);
    this.consumer = consumer;
  }

  public Consumer getConsumer() {
    return consumer;
  }

  public void setConsumer(Consumer consumer) {
    this.consumer = consumer;
  }
}
